<?php

namespace App\HttpController;

use EasySwoole\Http\AbstractInterface\Controller;
use Sslh\Auth\AuthComponent;

/**
 * Class Index
 * @package App\HttpController
 */
class Index extends Controller
{
    public function index()
    {
        return $this->response()->write('Hello World');
    }

    public function a()
    {
        $phone = '123';
        $passwd = '123';

        $auth_component = new \Sslh\Auth\AuthComponent();
        $result = $auth_component->login($phone, $passwd);
        //var_dump($result);
        return $this->response()->write($result);
    }
}
